﻿using System;
using System.Data;
using System.Collections;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;

namespace Blazing.UI.Cms.Admin.Classes
{
    [ParseChildren(false), PersistChildren(true)]
    public partial class RoundedPanel : System.Web.UI.WebControls.WebControl, INamingContainer
    {
        protected void Page_Load(object sender, EventArgs e)
        {
        }

        protected override void RenderChildren(HtmlTextWriter writer)
        {
            string begin = @"<div class=""rounded"">
            <div class=""top-outer"">
                <div class=""top-inner"">
                    <div class=""top"">
                    </div>
                </div>
            </div>               
            <div class=""mid-outer"">
                <div class=""mid-inner"">
                    <div class=""mid"">";
            string end = @"</div>
                    </div>
                </div>
                    <div class=""bottom-outer"">
                        <div class=""bottom-inner"">
                            <div class=""bottom"">
                            </div>
                        </div>
                    </div>
                </div>";

            if (DesignMode)
            {
                base.RenderChildren(writer);
            }
            else
            {
                writer.Write(begin);
                base.RenderChildren(writer);
                writer.Write(end);
            }
        }        
    } 
}
